<div class="square">
<h1>Pagina's</h1>
<table>
    <tr>
        <th>Pagina</th>
        <th>Acties</th>
    </tr>
    <?php foreach ($pages as $page): ?>
    <tr>
        <td>
            <?php echo $page['pages']['page']; ?>
        </td>
        <td>
            <?php echo $this->Html->link('edit', array('action' => 'editPage', $page['pages']['page'])); ?>
        </td>
    </tr>
    <?php endforeach; ?>
    <?php foreach ($diensten as $dienst): ?>
    <tr>
        <td>
            <?php echo $dienst['diensten']['type']; ?>
        </td>
        <td>
            <?php echo $this->Html->link('edit', array('action' => 'editDienst', $dienst['diensten']['type'])); ?>
        </td>
    </tr>
    <?php endforeach; ?>
</table>
</div>

<div class="square">
<h1>Nieuws</h1>
<p><?php echo $this->Html->link('Voeg nieuwsitem toe', array('action' => 'addNewsItem')); ?></p>
<table>
    <tr>
        <th>Datum</th>
        <th>Item</th>
        <th>Acties</th>
    </tr>
    <?php foreach ($newsitems as $item): ?>
    <tr>
        <td>
            <?php echo $item['nieuwsitems']['date']; ?>
        </td>
        <td>
            <?php echo $item['nieuwsitems']['title']; ?>
        </td>
        <td>
            <?php echo $this->Html->link('edit', array('action' => 'editNewsItem', $item['nieuwsitems']['key'])); ?>
            /
            <?php echo $this->Html->link('delete', 
                    array('action' => 'deleteNewsItem', $item['nieuwsitems']['key']),
                    array('confirm' => 'Are you sure?')); ?>
        </td>
    </tr>
    <?php endforeach; ?>
</table>

</div>
